﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000E99 RID: 3737
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueCommonDialogueDataInfo : IMessage<RogueCommonDialogueDataInfo>, IMessage, IEquatable<RogueCommonDialogueDataInfo>, IDeepCloneable<RogueCommonDialogueDataInfo>, IBufferMessage
	{
		// Token: 0x17002F66 RID: 12134
		// (get) Token: 0x0600A769 RID: 42857 RVA: 0x001C4233 File Offset: 0x001C2433
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueCommonDialogueDataInfo> Parser
		{
			get
			{
				return RogueCommonDialogueDataInfo._parser;
			}
		}

		// Token: 0x17002F67 RID: 12135
		// (get) Token: 0x0600A76A RID: 42858 RVA: 0x001C423A File Offset: 0x001C243A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueCommonDialogueDataInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002F68 RID: 12136
		// (get) Token: 0x0600A76B RID: 42859 RVA: 0x001C424C File Offset: 0x001C244C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueCommonDialogueDataInfo.Descriptor;
			}
		}

		// Token: 0x0600A76C RID: 42860 RVA: 0x001C4253 File Offset: 0x001C2453
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonDialogueDataInfo()
		{
		}

		// Token: 0x0600A76D RID: 42861 RVA: 0x001C4268 File Offset: 0x001C2468
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonDialogueDataInfo(RogueCommonDialogueDataInfo other) : this()
		{
			this.dialogueInfo_ = ((other.dialogueInfo_ != null) ? other.dialogueInfo_.Clone() : null);
			this.optionList_ = other.optionList_.Clone();
			this.eventUniqueId_ = other.eventUniqueId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A76E RID: 42862 RVA: 0x001C42C5 File Offset: 0x001C24C5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonDialogueDataInfo Clone()
		{
			return new RogueCommonDialogueDataInfo(this);
		}

		// Token: 0x17002F69 RID: 12137
		// (get) Token: 0x0600A76F RID: 42863 RVA: 0x001C42CD File Offset: 0x001C24CD
		// (set) Token: 0x0600A770 RID: 42864 RVA: 0x001C42D5 File Offset: 0x001C24D5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonDialogueInfo DialogueInfo
		{
			get
			{
				return this.dialogueInfo_;
			}
			set
			{
				this.dialogueInfo_ = value;
			}
		}

		// Token: 0x17002F6A RID: 12138
		// (get) Token: 0x0600A771 RID: 42865 RVA: 0x001C42DE File Offset: 0x001C24DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<RogueCommonDialogueOptionInfo> OptionList
		{
			get
			{
				return this.optionList_;
			}
		}

		// Token: 0x17002F6B RID: 12139
		// (get) Token: 0x0600A772 RID: 42866 RVA: 0x001C42E6 File Offset: 0x001C24E6
		// (set) Token: 0x0600A773 RID: 42867 RVA: 0x001C42EE File Offset: 0x001C24EE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EventUniqueId
		{
			get
			{
				return this.eventUniqueId_;
			}
			set
			{
				this.eventUniqueId_ = value;
			}
		}

		// Token: 0x0600A774 RID: 42868 RVA: 0x001C42F7 File Offset: 0x001C24F7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueCommonDialogueDataInfo);
		}

		// Token: 0x0600A775 RID: 42869 RVA: 0x001C4308 File Offset: 0x001C2508
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueCommonDialogueDataInfo other)
		{
			return other != null && (other == this || (object.Equals(this.DialogueInfo, other.DialogueInfo) && this.optionList_.Equals(other.optionList_) && this.EventUniqueId == other.EventUniqueId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A776 RID: 42870 RVA: 0x001C436C File Offset: 0x001C256C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.dialogueInfo_ != null)
			{
				num ^= this.DialogueInfo.GetHashCode();
			}
			num ^= this.optionList_.GetHashCode();
			if (this.EventUniqueId != 0U)
			{
				num ^= this.EventUniqueId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A777 RID: 42871 RVA: 0x001C43CF File Offset: 0x001C25CF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A778 RID: 42872 RVA: 0x001C43D7 File Offset: 0x001C25D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A779 RID: 42873 RVA: 0x001C43E0 File Offset: 0x001C25E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.EventUniqueId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.EventUniqueId);
			}
			this.optionList_.WriteTo(ref output, RogueCommonDialogueDataInfo._repeated_optionList_codec);
			if (this.dialogueInfo_ != null)
			{
				output.WriteRawTag(66);
				output.WriteMessage(this.DialogueInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A77A RID: 42874 RVA: 0x001C444C File Offset: 0x001C264C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.dialogueInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.DialogueInfo);
			}
			num += this.optionList_.CalculateSize(RogueCommonDialogueDataInfo._repeated_optionList_codec);
			if (this.EventUniqueId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EventUniqueId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A77B RID: 42875 RVA: 0x001C44B8 File Offset: 0x001C26B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueCommonDialogueDataInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.dialogueInfo_ != null)
			{
				if (this.dialogueInfo_ == null)
				{
					this.DialogueInfo = new RogueCommonDialogueInfo();
				}
				this.DialogueInfo.MergeFrom(other.DialogueInfo);
			}
			this.optionList_.Add(other.optionList_);
			if (other.EventUniqueId != 0U)
			{
				this.EventUniqueId = other.EventUniqueId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A77C RID: 42876 RVA: 0x001C4531 File Offset: 0x001C2731
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A77D RID: 42877 RVA: 0x001C453C File Offset: 0x001C273C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 58U)
					{
						if (num != 66U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							if (this.dialogueInfo_ == null)
							{
								this.DialogueInfo = new RogueCommonDialogueInfo();
							}
							input.ReadMessage(this.DialogueInfo);
						}
					}
					else
					{
						this.optionList_.AddEntriesFrom(ref input, RogueCommonDialogueDataInfo._repeated_optionList_codec);
					}
				}
				else
				{
					this.EventUniqueId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004419 RID: 17433
		private static readonly MessageParser<RogueCommonDialogueDataInfo> _parser = new MessageParser<RogueCommonDialogueDataInfo>(() => new RogueCommonDialogueDataInfo());

		// Token: 0x0400441A RID: 17434
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400441B RID: 17435
		public const int DialogueInfoFieldNumber = 8;

		// Token: 0x0400441C RID: 17436
		private RogueCommonDialogueInfo dialogueInfo_;

		// Token: 0x0400441D RID: 17437
		public const int OptionListFieldNumber = 7;

		// Token: 0x0400441E RID: 17438
		private static readonly FieldCodec<RogueCommonDialogueOptionInfo> _repeated_optionList_codec = FieldCodec.ForMessage<RogueCommonDialogueOptionInfo>(58U, RogueCommonDialogueOptionInfo.Parser);

		// Token: 0x0400441F RID: 17439
		private readonly RepeatedField<RogueCommonDialogueOptionInfo> optionList_ = new RepeatedField<RogueCommonDialogueOptionInfo>();

		// Token: 0x04004420 RID: 17440
		public const int EventUniqueIdFieldNumber = 4;

		// Token: 0x04004421 RID: 17441
		private uint eventUniqueId_;
	}
}
